From b6b9004885c2df890058517c5e7986be4929e21e Mon Sep 17 00:00:00 2001 From: Kjartan Maraas Date: Wed, 8 Jul 2009 15:48:51 +0200 Subject: [PATCH] Use g_object_unref instead of deprecated gdk_pixmap_unref --- gdk/gdkoffscreenwindow.c | 2 +- gdk/testgdk.c | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/gdk/gdkoffscreenwindow.c b/gdk/gdkoffscreenwindow.c index 03d8fe04f2..f14f831e82 100644 --- a/gdk/gdkoffscreenwindow.c +++ b/gdk/gdkoffscreenwindow.c @@ -94,7 +94,7 @@ gdk_offscreen_window_finalize (GObject *object) offscreen->cursor = NULL; - gdk_pixmap_unref (offscreen->pixmap); + g_object_unref (offscreen->pixmap); G_OBJECT_CLASS (gdk_offscreen_window_parent_class)->finalize (object); } diff --git a/gdk/testgdk.c b/gdk/testgdk.c index 6a38b54d16..c7ca87bba8 100644 --- a/gdk/testgdk.c +++ b/gdk/testgdk.c @@ -340,7 +340,7 @@ test_gcs (void) pixmap = gdk_pixmap_new (NULL, 1, 1, 1); black_bitmap_gc = gdk_gc_new (pixmap); - gdk_pixmap_unref (pixmap); + g_object_unref (pixmap); } /* Create pixmaps, check that properties are as expected. @@ -370,7 +370,7 @@ test_pixmaps (gint depth) QTEST (image->height == height); QTEST (image->depth == depth); gdk_image_destroy (image); - gdk_pixmap_unref (pixmap); + g_object_unref (pixmap); } TEST (retval); } @@ -569,7 +569,7 @@ test_points (void) gdk_gc_set_function (gcs[j], GDK_COPY); } - gdk_pixmap_unref (pixmap); + g_object_unref (pixmap); pixmap = gdk_pixmap_new (w, width, height, 1); test_one_point_on_drawable (pixmap, black_bitmap_gc, 1); @@ -579,7 +579,7 @@ test_points (void) test_one_point_on_drawable (pixmap, black_bitmap_gc, 1); } - gdk_pixmap_unref (pixmap); + g_object_unref (pixmap); } static void @@ -684,7 +684,7 @@ test_lines (void) gdk_gc_set_function (gcs[j], GDK_COPY); } - gdk_pixmap_unref (pixmap); + g_object_unref (pixmap); } static void @@ -789,7 +789,7 @@ test_rectangles (void) gdk_gc_set_function (gcs[j], GDK_COPY); } - gdk_pixmap_unref (pixmap); + g_object_unref (pixmap); } static void @@ -880,7 +880,7 @@ test_arcs (void) gdk_gc_set_function (gcs[j], GDK_COPY); } - gdk_pixmap_unref (pixmap); + g_object_unref (pixmap); } /* Test region operations. -- 2.30.2